<?php
 
/**
 * Template to generate one div with
 * recent question link
 * This will be used for showing recent
 * questions on home page
 * Multiple divs of this template will be
 * parsed using the loop method
 *
 */
class tplRecentquestions extends StudyBuddy\Template\Template
{
	protected static $vars = array(
	'_id' => '0', // 1
	'i_ans' => '0', // 2
	'url' => '', // 3
	'intro' => '', //4
	'title' => '', // 5
	'status' => 'un', // 6
	'avtr' => '', // 7
	'hts' => '', // 8
	'vw_s' => 's', // 9
	'ans_s' => '' // 10
	);
	
	
	protected static $tpl = '
	<div class="rq">
		<div class="avtr32"><img src="%7$s" height="40" width="40" alt=""></div>
		<div class="fl a2">
		 <a href="/q%1$s/%3$s" class="arq">%5$s</a><br>
		 <div class="status %6$s">%2$s <span rel="in">answer%10$s</span></div>
		</div>
	</div>';
}